<template>
  <div>
    <UploadExcel :before-upload="beforeUpload" :on-success="onSuccess" />
  </div>
</template>

<script>
export default {
  methods: {
    // 限制上次文件大小与类型
    beforeUpload(file) {
      console.log(file)
    },
    onSuccess(header, results) {
      console.log(header, results)
    }
  }
}
</script>

<style lang="scss" scoped></style>
